import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;

public class Stop
{
	public static final int PORT = 8079; // Change to whatever your port is, 8079 is default
	
	public static void main(String[] args) throws Exception
	{
		Socket s = new Socket(InetAddress.getByName("127.0.0.1"), PORT);
		OutputStream out = s.getOutputStream();
		System.out.println("*** sending jetty stop request");
		out.write(("\r\n").getBytes());
		out.flush();
		s.close();
	}
	
}